<!DOCTYPE html>
<html>
	<title>Cookie 1</title>
	<meta charset="UTF-8"/>
	
	<script type="text/javascript" src="js/cookie.js"></script>
	<script language="javascript" type="text/javascript">
		function btnSetCookie_onclick() {
			setCookie("myvalue", txtValue.value);
			setCookie("myvalue2", "red");
		}
	</script>
	</head>

	<body>
		<input type="text" id="txtValue" />
		<input type="button" value="将值写入cookie" id="btnSetCookie" onclick="btnSetCookie_onclick()" />
		<br />
		<a href="26cookie2.html">Cookie2</a>
	</body>

</html>